package com.Archive.secondWeek;

import java.sql.Struct;

public class more_10 {
    public boolean IntntCompare(int c) {
        if (c > 10) {
            return true;
        } else {
            return false;
        }
    }

    public static void main(String[] args) {
        more_10 m = new more_10();

        int[] arr = new int[]{5, 34, 74, 23, 12, 2, 5, -10, 125, 5, -1, 0, 12};
        int num = 0;
        for (int c : arr) {
            if (m.IntntCompare(c) == true) {
                num++;
            }
        }
        System.out.println("数组中大于10的数共有" + num + "个");
    }
}
